//
//  SearchCollectionViewCell.m
//  Youhuiju
//
//  Created by 余尚飞 on 16/8/2.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "SearchCollectionViewCell.h"


@implementation SearchCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setDataString:(NSString *)dataString
{
//    NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:18 * FitH], NSFontAttributeName, nil];
//    CGRect rect = [dataString boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, 32 * FitH) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    self.titleLabel.text = dataString;
    self.titleLabel.font = [UIFont systemFontOfSize:13 * FitH];

    self.titleLabel.textColor = [UIColor colorWithHexString:@"666666"];
//    self.titleLabel.frame = CGRectMake(0, 0,rect.size.width * FitW + 0 , 32 * FitH);

    self.layer.cornerRadius = 4 * FitH;
}

@end
